{rsms:config.pagesize value='20' /}
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>广告管理</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA">
  <tr>
   <td height="28" background="img/tbg.gif" colspan="7">
     <b>广告管理</b>&nbsp;[<a href="ad_add.php"><u>增加一个新广告</u></a>]
	</td>
</tr>
  <tr align="center" bgcolor="#F9FCEF" height="24"> 
      <td width="8%">编号</td>
      <td width="20%">广告名称</td>
      <td width="12%">投放范围</td>
      <td width="11%">是否限时</td>
      <td width="11%">结束时间</td>
      <td width="20%">广告代码</td>
      <td width="18%">管理</td>
   </tr>
   {rsms:datalist}
    <tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
        <td>{rsms:field.aid /}</td>
        <td>{rsms:field.adname /}</td>
        <td>{rsms:field.typename function='TestType(@me)'/}</td>
        <td>{rsms:field.timeset function='TimeSetValue(@me)'/}</td>
        <td>{rsms:field.endtime function='GetDateMk(@me)'/}</td>
        <td><?php echo '{'; ?>rsms:myad name='{rsms:field.tagname /}'/<?php echo '}'; ?></td>
        <td>
         <a href='ad_edit.php?aid={rsms:field.aid /}&dopost=getjs'>[JS]</a>
         <a href='ad_edit.php?aid={rsms:field.aid /}&dopost=edit'>[更改]</a>
		     <a href='ad_edit.php?aid={rsms:field.aid /}&dopost=delete'>[删除]</a>
		    </td>
     </tr>
		{/rsms:datalist}
     <tr align="center" bgcolor="#F9FCEF" height="24"> 
      <td colspan="7">
      	{rsms:pagelist listsize=5/}
      </td>
     </tr>
   </table>
   </td>
</tr>
</table>
</body>
</html>